package pack21;

class A10
{
	private A10()
	{
		System.out.println("default constructor of A10");
	}
final static A10 ref1=new A10();
final static A10 ref2=new A10();
public static A10 firstInstance()
{
	return ref1;
}
public static A10 secondInstance()
{
	return ref2;
}
}
public class Program10 {

	
	public static void main(String[] args) {
	A10 ref3=A10.firstInstance();
	A10 ref4=A10.secondInstance();
	System.out.println(ref3);
	System.out.println(ref4);

	}

}
